package thetvdb

import "xml"

type Mirrors struct {
    XMLName xml.Name "Mirrors"
    Mirror []Mirror
}

type Mirror struct {
    Id int
    Mirrorpath string
    Typemask int
}

type Data struct {
    Series []SimpleSeries
}

type SeriesData struct {
    XMLName xml.Name "Data"
    Series Series
    Episode []Episode
}

type SimpleSeries struct {
    Id string
    SeriesName string
    Banner string
}

type Series struct {
    SimpleSeries
    Actors string
    Airs_DayOfWeek string
    Airs_Time string
    ContentRating string
    FirstAired string
    Genre string
    Imdb_Id string
    Language string
    Network string
    Overview string
    Rating string
    Runtime string
    SeriesId string
    Status string
    Added string
    AddedBy string
    FanArt string
    LastUpdated string
    Poster string
    Zap2It_Id string
}
func (s *Series) String() string {
    return "[" + s.Id + "|" + s.SeriesName + "]"

}

type Episode struct {
    Id string
    Combined_episodenumber string
    Combined_season string
    DVD_chapter string
    DVD_discid string
    DVD_episodenumber string
    DVD_season string
    Director string
    EpImgFlag string
    EpisodeName string
    EpisodeNumber string
    FirstAired string
    GuestStars string
    IMDB_ID string
    Language string
    Overview string
    ProductionCode string
    Rating string
    RatingCount string
    SeasonNumber string
    Writer string
    absolute_number string
    Airsafter_season string
    Airsbefore_episode string
    airsbefore_season string
    Filename string
    Lastupdated string
    SeasonId string
    SeriesId string
}

func (e Episode) String() string {
    return "\t{" + e.EpisodeNumber + "x" + e.SeasonNumber + " | " + e.EpisodeName + " }"
}
